import type { MenuProps, MenuItemProps } from 'antd';
import { DropdownComponent } from '@/components/DropdownComponent';
import menu_config from './menu_config.json';

const add_config = menu_config.Add as MenuProps['items'];

export const TopToolView = () => {
  const onClick: MenuItemProps['onClick'] = (info) => {
    console.log(info);
  };
  return (
    <div className="w-[76%] h-0 text-base/tight px-0.5 pointer-events-auto">
      <div className="bg-neutral-800 rounded-sm">
        <DropdownComponent title="添加" items={add_config} onClick={onClick}></DropdownComponent>
        <DropdownComponent title="测试" items={add_config} onClick={onClick}></DropdownComponent>
      </div>
    </div>
  );
};
